//
//  ActListDetailTableViewCell.m
//  TravelFirst
//
//  Created by lanou3g on 15/9/21.
//  Copyright (c) 2015年 吴娅君. All rights reserved.
//

#import "ActListDetailTableViewCell.h"

@implementation ActListDetailTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        self.selectionStyle = 0;
        self.view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kWidth, kWidth/1.3)];
        self.view.backgroundColor = [UIColor whiteColor];
        
        self.pictuer = [[UIImageView alloc] initWithFrame:CGRectMake(2, 0, kWidth - 4, 200)];
        
        self.title = [[UILabel alloc] initWithFrame:CGRectMake(2, 205, 250, 30)];
        _title.numberOfLines = 0;
        _title.font = [UIFont systemFontOfSize:13];
       
        
        self.address = [[UILabel alloc] initWithFrame:CGRectMake( 10, 240, 200, 30)];
        _address.font = [UIFont systemFontOfSize:12];
        
        self.join = [[UILabel alloc] initWithFrame:CGRectMake(270, 205, 100, 30)];
        _join.backgroundColor =[UIColor redColor];
        _join.text = @"立即参加";
        _join.textAlignment = 1;
        _join.textColor = [UIColor whiteColor];
        
        self.logo = [[UIImageView alloc] initWithFrame:CGRectMake(5, 175, 30, 20)];
        self.logo.backgroundColor = [UIColor blackColor];
        
        self.logoTitle = [[UILabel alloc] initWithFrame:CGRectMake(35, 175, 100, 20)];
        _logoTitle.font = [UIFont boldSystemFontOfSize:13];
        _logoTitle.textColor = [UIColor whiteColor];
        
        
        self.time = [[UILabel alloc] initWithFrame:CGRectMake(120, 175, 130, 20)];
        _time.textColor = [UIColor whiteColor];
        _time.font = [UIFont boldSystemFontOfSize:13];
        
        self.day = [[UILabel alloc] initWithFrame:CGRectMake(kWidth - 100, 175, 100, 20)];
        _day.textColor = [UIColor whiteColor];
        _day.textAlignment = 1;
        _day.font = [UIFont boldSystemFontOfSize:13];
        
        self.date = [[UILabel alloc] initWithFrame:CGRectMake(kWidth - 130, 10, 120, 25)];
        _date.backgroundColor = [UIColor blackColor];
        _date.textAlignment = 1;
        _date.textColor = [UIColor whiteColor];
        
        self.money = [[UILabel alloc] initWithFrame:CGRectMake(kWidth - 130, 35, 120, 25)];
        _money.backgroundColor =[UIColor whiteColor];
        _money.textColor = [UIColor redColor];
        _money.font = [UIFont systemFontOfSize:12];
        _money.textAlignment = 1;
        
        [self.contentView addSubview:_view];
        [_view addSubview:_pictuer];
        [_view addSubview:_title];
        [_view addSubview:_address];
        [_view addSubview:_join];
        [_pictuer addSubview:_logoTitle];
        [_pictuer addSubview:_logo];
        [_pictuer addSubview:_time];
        [_pictuer addSubview:_day];
        [_pictuer addSubview:_date];
        [_pictuer addSubview:_money];
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
